package globalkey

// 状态
const (
	StatusDisabled int32 = 0 // 禁用  #24.09.09#
	StatusEnabled  int32 = 1 // 启用/正常  #24.09.09#
	StatusExpired  int32 = 2 // 过期/注销/冻结  #24.09.09#
	StatusDeleted  int32 = 3 // 删除 ##25.03.01##

	StatusPending  int32 = 0 // 待审核
	StatusApproved int32 = 1 // 已通过
	StatusRejected int32 = 2 // 已驳回
	StatusDraft    int32 = 4 // 草稿

	StatusBanned int32 = 0 // 禁用
	StatusNormal int32 = 1 // 启用

	StatusAsGuest int32 = 4 // 退出登录，以游客模式访问  #24.09.09#

	StatusCheckSuccess int32 = 5 // 微信异步校验图片通过
	StatusCheckFailed  int32 = 2 // 微信异步校验图片未通过
	StatusSticky       int32 = 6
	StatusUnsticky     int32 = 7

	StatusNotStarted int32 = 1  // 未开始
	StatusStarted    int32 = 10 // 进行中
	StatusFinished   int32 = 20 // 已结束 ##25.03.01##
	StatusInvalid    int32 = 30 // 已失效 ##25.03.01##
	StatusUsed       int32 = 40 // 已使用

	StatusWrongType int32 = -1 // ##25.05.17##
	StatusOverSize  int32 = -2 // ##25.05.17##
)

const (
	// TERM  Category
	TermCategoryTypeBrand   int32 = 14 // 品牌
	TermCategoryTypePerfume int32 = 15 // 香水 // deprecated
	TermCategoryTypeNose    int32 = 16 // 调香师
	TermCategoryTypeNote    int32 = 18 // 气味
)

const (
	// Note
	NoteTypeTopNotes   int32 = 1 // 前调
	NoteTypeHeartNotes int32 = 2 // 中调
	NoteTypeBaseNotes  int32 = 3 // 后调
)
const (
	// GenderType
	GenderTypeMale    int32 = 1 // 男
	GenderTypeFemale  int32 = 2 // 女
	GenderTypeNeutral int32 = 3 // 中性
)

// Taxonomy represents term taxonomy names
//
// i.e. categories, nav_menu, post_tag
const (
	// TaxonomyCategory is for post categories
	TermTaxonomyCategory int32 = 1 // "category" // ##24.11.08##

	// TaxonomyPostTag is for post tags
	TermTaxonomyTag int32 = 2 // "post_tag" // ##24.11.08##

	TermTaxonomyPostFormat int32 = 3 // "post_format"

	// TaxonomyNavMenu is for menu locations
	TermTaxonomyNavMenu int32 = 4 // nav_menu

	TermTaxonomyTheme int32 = 5 // wp_theme

	TermTaxonomyKnowledgeBase int32 = 11 // "knowledge_base" // ##24.11.08## 词条分类

	TermTaxonomyProductTag int32 = 21 // "product_tag" // ##24.11.08##

	TermTaxonomyReviewTag int32 = 31 // "review_tag" // ##24.11.13##
)

const (
	TermTaxonomyNameCategory      string = "category"
	TermTaxonomyNameTag           string = "tag"
	TermTaxonomyNamePostTag       string = "post_tag"
	TermTaxonomyNamePostFormat    string = "post_format"
	TermTaxonomyNameNavMenu       string = "nav_menu"
	TermTaxonomyNameTheme         string = "wp_theme"
	TermTaxonomyNameKnowledgeBase string = "knowledge_base"
	TermTaxonomyNameProductTag    string = "product_tag"
	TermTaxonomyNameReviewTag     string = "review_tag"
)
const (
	RecommendedCategoryTypePost string = "post"
)
const (
	//已读反馈
	RecommendedFeedBackTypeRead string = "read"
	//正面反馈
	RecommendedFeedBackTypeLike     string = "like"
	RecommendedFeedBackTypeWantHave string = "wantHave"
	RecommendedFeedBackTypeHave     string = "have"
	RecommendedFeedBackTypeCollect  string = "collect"
)
const (
	//根据userid
	ItemLastTimeChick  string = "ItemLastTimeChick:"
	ItemRecommendCache string = "ItemRecommendCache:"
	ItemPopularCache   string = "ItemPopularCache:"
	ItemLatestCache    string = "ItemLatestCache:"

	//根据userid itemid 暂时先不缓存
	ItemNeighborsCache string = "ItemNeighborsCache:"
	RecommendCache     string = "RecommendCache:"

	GorseForumPostPrefix     string = "forumPost:"
	GorseBLogPostPrefix      string = "blogPost:"
	GorseKnowledgeBasePrefix string = "knowledgeBase:"
)

const (
	PerfumeCabinetTypeHave     int32 = 1 // deprecated
	PerfumeCabinetTypeWantHave int32 = 2 // deprecated
)

const EditorSplitSymbol = "<<split-symbol-djx>>"

const (
	// "publish" is a published post
	PostStatusPublish int32 = 1

	// "inherit" inherits its status from its parent
	PostStatusInherit int32 = 2

	// "draft" is a draft post
	PostStatusDraft int32 = 11

	// "auto-draft" is an auto-saved post
	PostStatusAutoDraft int32 = 12

	// "pending" is a post which is awaiting approval
	PostStatusPending int32 = 21

	// "future" is a post which has been
	// published but it's publish date is in the future
	PostStatusFuture int32 = 51

	// "private" is a private post
	PostStatusPrivate int32 = 61

	PostStatusRejected int32 = 71

	// "trash" is a post that was trashed
	PostStatusTrash int32 = 81

	PostStatusSticky   int32 = 91
	PostStatusUnSticky int32 = 92
	PostStatusPick     int32 = 93
	PostStatusUnPick   int32 = 94
)

const (
	PostVisibilityPublic            uint32 = 1 // "public"
	PostVisibilityPasswordProtected uint32 = 2 // "password"
	PostVisibilityPrivate           uint32 = 3 // "private"
)

const (
	// PostTypePost is a post
	PostTypePost int32 = 1 // "post"  `blog_posts`

	// PostTypePage is a page
	PostTypePage int32 = 11 // "page"  `blog_pages`

	PostTypeStyle    int32 = 41 // "wp_global_styles"  `layout_templates`
	PostTypeTemplate int32 = 46 // "wp_theme"

	// PostTypeNavMenuItem is a menu item
	PostTypeNavMenuItem int32 = 51 // "nav_menu_item"  `layout_terms` `nav_menus`

	// PostTypeRevision is a revision
	PostTypeRevision int32 = 101 // "revision"  `blog_revisions`

	PostTypeKnowledgeBase           int32 = 141 // "knowledge_base"  `blog_knowledge_bases`
	PostTypeKnowledgeBaseComplement int32 = 142 // `blog_knowledge_bases`

	PostTypeAcfField      int32 = 201 // "acf-field"  `extensions`
	PostTypeAcfFieldGroup int32 = 211 // "acf-field-group"  `extensions`

	// PostTypeAttachment is an attachment
	PostTypeAttachment int32 = 221 // "attachment"  `attachments`

	PostTypeProduct          int32 = 242 // "product"  `products`
	PostTypeProductVariation int32 = 251 // "product_variation"  `product_variations`

	PostTypeCustomizeChangeset int32 = 255 // "customize_changeset"  `extensions`

	PostTypeTermOffset uint16 = 1000
)

const (
	BlogStickyTypeFrontpage int32 = 1
	BlogStickyTypeCategory  int32 = 2
	BlogStickyTypeTag       int32 = 3
	BlogStickyTypeSection   int32 = 4
)

const (
	AttachmentTypeDirectory int32 = 1

	AttachmentTypeLocalTempFile int32 = 2 // ##25.02.10##  本地临时文件
	AttachmentTypeLocalFile     int32 = 3 // ##25.02.10##  本地文件

	AttachmentTypePutPendingFile int32 = 11 // ##25.02.10##
	AttachmentTypePutReadyFile   int32 = 12 // ##25.02.10##

	AttachmentTypeWatermarkPendingFile         int32 = 13 // ##25.02.10##
	AttachmentTypeWatermarkPendingPutReadyFile int32 = 14 // ##25.02.10##
	AttachmentTypeWatermarkReadyFile           int32 = 15 // ##25.02.10##

	AttachmentTypeThumbnailPendingFile         int32 = 16 // ##25.02.10##
	AttachmentTypeThumbnailPendingPutReadyFile int32 = 17 // ##25.02.10##
	AttachmentTypeThumbnailReadyFile           int32 = 18 // ##25.02.10##

	AttachmentTypePendingFile               int32 = 19 // ##25.02.10##
	AttachmentTypePendingPutReadyFile       int32 = 20 // ##25.02.10##
	AttachmentTypePendingWatermarkReadyFile int32 = 21 // ##25.02.10##
	AttachmentTypeReadyFile                 int32 = 22 // ##25.02.10##

	AttachmentTypeUserLocalTempFile int32 = 32
	AttachmentTypeUserLocalFile     int32 = 33

	AttachmentTypePut       int32 = 0
	AttachmentTypeWatermark int32 = 1
	AttachmentTypeThumbnail int32 = 2

	ForumAttachmentTypeTopic    int32 = 1 // ##25.02.18## deprecated
	ForumAttachmentTypePost     int32 = 2 // ##25.02.18## deprecated
	ForumAttachmentTypeComment  int32 = 3
	ForumAttachmentTypeReaction int32 = 4
	ForumAttachmentTypeShowCase int32 = 10 // ##25.02.18## deprecated
	ForumAttachmentTypeAvatar   int32 = 11 // ##25.02.18## deprecated
	ForumAttachmentTypeTerm     int32 = 21 // ##24.11.14##
	ForumAttachmentTypeTag      int32 = 22 // ##25.02.18## deprecated

	UserAttachmentTypeAvatar int32 = 11
)

const (
	AttachmentLogTypePost        int32 = 1  // ##25.02.18##
	AttachmentLogTypePage        int32 = 2  // ##25.02.18##
	AttachmentLogTypeTerm        int32 = 4  // ##25.02.18##
	AttachmentLogTypeBanner      int32 = 11 // ##25.02.18##
	AttachmentLogTypeSection     int32 = 12 // ##25.02.18##
	AttachmentLogTypeAfterSale   int32 = 21 // ##25.02.18##
	AttachmentLogTypeBlogSection int32 = 22
	AttachmentLogTypeUserAvatar  int32 = 101 // ##25.02.18##
	AttachmentLogTypeForumTerm   int32 = 111 // ##25.02.18##
	AttachmentLogTypeForumPost   int32 = 112 // ##25.02.18##
	AttachmentLogTypeForumReview int32 = 113 // ##25.02.18#
	AttachmentLogTypeForumTopic  int32 = 114 // ##25.02.18##
	AttachmentLogTypeForumAvatar int32 = 115 // ##25.02.18##
	AttachmentLogTypeWardrobe    int32 = 116 // ##25.02.18##

	AttachmentLogTypeKnowledgeBase           int32 = 141 // ##25.02.18##
	AttachmentLogTypeKnowledgeBaseComplement int32 = 142

	AttachmentLogTypePromotion       int32 = 231 // ##25.03.01##
	AttachmentLogTypePromotionCoupon int32 = 232 // ##25.03.01##

	AttachmentLogTypeProductTerm      int32 = 241 // ##24.11.08##
	AttachmentLogTypeProduct          int32 = 242 // ##24.11.08##
	AttachmentLogTypeProductVariation int32 = 251 // ##24.11.08##

	AttachmentLogTypeTermOffset uint16 = 1000
)

const (
	AttachmentLogDuplicated     int32 = 1 // AttachmentFileInfo 重复
	AttachmentLogInfoDuplicated int32 = 2 // AttachmentFileInfo 多次重复

	AttachmentLogKbEntry  int32 = 1 // ##25.02.18## deprecated
	AttachmentLogBlogPost int32 = 2 // ##25.02.18## deprecated
	AttachmentLogBlogPage int32 = 3 // ##25.02.18## deprecated
	AttachmentLogBlogTerm int32 = 4 // ##25.02.18## deprecated

	AttachmentLogProduct     int32 = 12 // ##25.02.18##
	AttachmentLogProductTerm int32 = 14 // ##25.02.18##

	AttachmentLogForumPhoto     int32 = 21 // ##25.02.18## deprecated
	AttachmentLogForumWardrobe  int32 = 22 // ##25.02.18## deprecated
	AttachmentLogForumPost      int32 = 23 // ##25.02.18## deprecated
	AttachmentLogForumTopic     int32 = 24 // ##25.02.18## deprecated
	AttachmentLogForumReply     int32 = 25 // ##25.02.18## deprecated
	AttachmentLogForumReaction  int32 = 26 // ##25.02.18## deprecated
	AttachmentLogForumAfterSale int32 = 27

	AttachmentLogUserProfile int32 = 31 // ##25.02.18## deprecated
)

const (
	AttachmentOptionPut       string = "put"
	AttachmentOptionWatermark string = "watermark"
	AttachmentOptionThumbnail string = "thumbnail"
)

const (
	AttachmentStatusPublish int32 = 1
	AttachmentStatusInherit int32 = 2
	AttachmentStatusDraft   int32 = 11
	AttachmentStatusPrivate int32 = 61
	AttachmentStatusTrash   int32 = 81

	AttachmentOrderOffset uint = 1000
)

const (
	SystemMenuTypeDirectory int32 = 0

	SystemDefaultSort int32 = 999

	PreservedSectionId uint64 = 10
)

const (
	SettingBannerTypeWechatMiniIndex  int32 = 1 // #24.07.30# 小程序首页轮播
	SettingBannerTypeWechatMiniSearch int32 = 2 // #24.08.20# 小程序搜索中间页banner

	SettingBannerLinkTypeRelative int32 = 1 // ##24.11.07## 小程序首页轮播链接类型：相对路径
	SettingBannerLinkTypeAbsolute int32 = 2 // ##24.11.07## 小程序首页轮播链接类型：绝对路径

	SettingBannerAdvertTypeProduct int32 = 1 // ##24.11.07## 小程序首页轮播广告类型：商品广告
	SettingBannerAdvertTypePage    int32 = 2 // ##25.03.06## 小程序首页轮播广告类型：小程序页面

	SettingLiveTileTypeWechatMiniIndex int32 = 1 // #24.07.15#

	SettingSectionTypeWaterfallIndex int32 = 0 // #24.08.16# 小程序首页瀑布流
	SettingSectionTypeLiveTileIndex  int32 = 1 // #24.08.06# 小程序首页瓷片分区
	SettingSectionTypeCorridorIndex  int32 = 2 // #24.08.06# 小程序首页甬道分区

	SettingSectionTypeForumPostIndex int32 = 11 // #24.08.06# 小程序探索页香评文章分区
	SettingSectionTypeReviewIndex    int32 = 12 // #24.08.06# 小程序探索页标签分区
	SettingSectionTypeEntryIndex     int32 = 13 // #24.08.06# 小程序探索页百科词条分区
	SettingSectionTypePostIndex      int32 = 14 // ##25.03.07## 小程序探索页专栏文章分区

	SettingSectionTypePostCardIndex   int32 = 3 // #24.08.06# 小程序社区首页香评文章分区 // deprecated
	SettingSectionTypeTagCardIndex    int32 = 4 // #24.08.06# 小程序社区首页标签分区 // deprecated
	SettingSectionTypeKBPostCardIndex int32 = 5 // #24.08.06# 小程序社区首页百科分区 // deprecated
)

const (
	SettingSearchKeywordTypeRecommend    int32 = 1 // #24.08.10# 常驻搜索词
	SettingSearchKeywordTypeTrending     int32 = 2 // #24.08.10# 搜索中间页热门搜索词
	SettingSearchKeywordTypeForumTag     int32 = 3 // #24.08.10# 探索页热门搜索词
	SettingSearchKeywordLinkTypeRelative int32 = 1 // #24.08.10# 小程序首页搜索词链接类型：相对路径
	SettingSearchKeywordLinkTypeAbsolute int32 = 2 // #24.08.10# 小程序首页搜索词链接类型：绝对路径
)

const (
	SettingCouponTypeDefault         int32 = 0 // 默认coupontype为0，后续活动coupon改这边
	SettingCouponTypeFullMinus       int32 = 1 //满减券
	SettingCouponTypeFreight         int32 = 2 // 运费券
	SettingCouponTypeSpecificProduct int32 = 3 // 指定商品优惠券
)

const (
	KBEntryTopNote   int32 = 1
	KBEntryHeartNote int32 = 2
	KBEntryBaseNote  int32 = 3
)

const (
	ForumPostTypePhoto  int32 = 1
	ForumPostTypeReview int32 = 11
	ForumPostTypeReply  int32 = 101

	ForumTopicTypeDefault int32 = 101
)

const (
	ForumCardTypeEntry   int32 = 141
	ForumCardTypeBrand   int32 = 143
	ForumCardTypePerfume int32 = 144
	ForumCardTypeProduct int32 = 281
)

const (
	ForumCardTypeNameEntry   string = "entry"
	ForumCardTypeNameBrand   string = "brand"
	ForumCardTypeNamePerfume string = "perfume"
	ForumCardTypeNameProduct string = "product"
)

const (
	ForumModTypeReview       int32 = 1 // 香评审核
	ForumModTypeTopic        int32 = 2 // 问题审核
	ForumModTypeReply        int32 = 3 // 回答审核
	ForumModTypeReviewSticky int32 = 4 // 香评推荐
	ForumModTypeTopicSticky  int32 = 5 // 问题推荐
	ForumModTypeReplySticky  int32 = 6 // 回答推荐
	ForumModTypePhoto        int32 = 7 // 图片审核
)

const (
	ForumReactionTypeWant         uint32 = 1 // kb entry
	ForumReactionTypeOwn          uint32 = 2
	ForumReactionTypeLike         uint32 = 11 // forum post columnized
	ForumReactionTypeCollect      uint32 = 12
	ForumReactionTypeQuestionLike uint32 = 21 // forum topic
)

const (
	ForumNoticeTypeApproved int32 = 1
	ForumNoticeTypeRejected int32 = 2
	ForumNoticeTypeSticky   int32 = 3
	ForumNoticeTypeUnsticky int32 = 4
)

const (
	RmqPendingStep    int32 = 0
	RmqFinalStep      int32 = 99
	RmqMaxFailedCount int32 = 3
)

const (
	ThirdPartyPlatformWechatMini uint32 = 1 // ##24.10.25## 第三方平台微信小程序
)

const (
	UserAuthTypeAccount    string = "account"         // 后台账号登录，已实现
	UserAuthTypeMobile     string = "mobile"          // 手机号
	UserAuthTypeEmail      string = "email"           // 邮箱地址
	UserAuthTypeUsername   string = "username"        // 登录名
	UserAuthTypeSystem     string = "system"          // 平台内部
	UserAuthTypeWechatMini string = "wxMini"          // 微信小程序，按平台 // ##25.03.12##
	UserAuthTypePlatform   string = "platform"        // 其他平台  // #24.06.19#
	UserAuthTypeWechat     string = "wechat_app"      // 微信，按终端 // ##25.03.12##
	UserAuthTypeWechatWork string = "wechat_work_app" // 企业微信，按终端 // ##25.03.12##
)

const (
	UserLogTypeToday            uint32 = 1 //今天
	UserLogTypeWeek             uint32 = 2 // 本周
	UserLogTypeMonth            uint32 = 3 //本月
	UserLogTypeWithinSevenDays  uint32 = 4 //7天内
	UserLogTypeWithinThirtyDays uint32 = 5 //30天内
)

const (
	DefaultMemberLevel int32 = 1 // 默认会员等级
)

const (
	DefaultMemberRankId int32 = 1 // 默认会员等级

	DefaultMemberRole int32 = 0 // 默认会员角色
)

const (
	ProductTypePhysical uint32 = 0 // 实物商品
	ProductTypeVirtual  uint32 = 1 // 虚拟物品
	ProductTypeCommon   uint32 = 2 // 原装正品
	ProductTypeSample   uint32 = 3 // 试香
	ProductTypeUnused   uint32 = 4 // 闲置
	ProductTypeExchange uint32 = 5 // 积分兑换商品
)

const (
	// "publish" is a published product
	ProductStatusPublish int32 = 1

	// "inherit" inherits its status from its parent
	ProductStatusInherit int32 = 2

	// "draft" is a draft product
	ProductStatusDraft int32 = 11

	// "auto-draft" is an auto-saved product
	ProductStatusAutoDraft int32 = 12

	// "pending" is a product which is awaiting approval
	ProductStatusPending int32 = 21

	// "future" is a product which has been
	// published but it's publish date is in the future
	ProductStatusFuture int32 = 51

	// "private" is a private product
	ProductStatusPrivate int32 = 61

	ProductStatusUnavailable int32 = 62 // "unavailable" 已售罄

	ProductStatusRejected int32 = 71

	// "trash" is a product that was trashed
	ProductStatusTrash int32 = 81
)

const (
	ProductRelationNamePerfume string = "perfume" // 香水
	ProductRelationNameBrand   string = "brand"   // 品牌 // ##25.02.19##
)

const (
	ActivityOprTypeParticipate uint32 = 1 // 参与活动
)

const (
	CouponOprTypeFreeze       uint32 = 1 // 冻结优惠券
	CouponOprTypeUnfreeze     uint32 = 2 // 解冻优惠券
	CouponOprTypeVerification uint32 = 3 // 核销优惠券
	CouponOprTypeInvalidate   uint32 = 4 // 使优惠券失效
	CouponOprTypeExchange     uint32 = 5 // 兑换优惠券
)

const (
	GemRatio int32 = 10
)

const (
	DefaultFreightTemplate     uint64 = 1
	DefaultFreightTemplateName string = "邮政ems"
	DefaultFreight             string = "10"
)

// 发货类型 0：快递；1：EMS；2：平邮；9：卖家承担运费（包邮）；11：虚拟物品；121：自提；122：商家自送（门店配送）
const (
	ShipmentTypeExpress uint32 = 0  // 快递
	ShipmentTypeVirtual uint32 = 11 // 虚拟
)

// 支付渠道
const (
	PaymentTypeAlipay      uint32 = 1 // 支付宝
	PaymentTypeWeChatPay   uint32 = 2 // 微信支付 "WECHAT_PAY"
	PaymentTypeGems        uint32 = 3 // 宝石
	PaymentTypeNoNeedToPay uint32 = 11
	PaymentTypeBank        uint32 = 12
)

// 支付状态
const (
	PaymentStatusNotPay         uint32 = 11
	PaymentStatusUserCancelled  uint32 = 12
	PaymentStatusAutoCancelled  uint32 = 13
	PaymentStatusAdminCancelled uint32 = 14
	PaymentStatusPaid           uint32 = 21
	PaymentStatusUserClosed     uint32 = 79
	PaymentStatusUserRefunded   uint32 = 83
	PaymentStatusAutoRefunded   uint32 = 26
)

const (
	WeChatPayTradeStateNotPay     string = "NOTPAY"     // 未支付
	WeChatPayTradeStateUserPaying string = "USERPAYING" // 用户支付中（付款码支付）
	WeChatPayTradeStateRevoked    string = "REVOKED"    // 已撤销（付款码支付）
	WeChatPayTradeStateSuccess    string = "SUCCESS"    // 支付成功
	WeChatPayTradeStatePayError   string = "PAYERROR"   // 支付失败（其他原因，如银行返回失败）
	WeChatPayTradeStateClosed     string = "CLOSED"     // 已关闭
	WeChatPayTradeStateRefund     string = "REFUND"     // 转入退款
)

const (
	ThirdPartPaymentTradeStateNotPay     uint32 = 1 // 未支付
	ThirdPartPaymentTradeStateUserPaying uint32 = 2 // 用户支付中（付款码支付）
	ThirdPartPaymentTradeStateRevoked    uint32 = 3 // 已撤销（付款码支付）
	ThirdPartPaymentTradeStateSuccess    uint32 = 4 // 支付成功
	ThirdPartPaymentTradeStatePayError   uint32 = 5 // 支付失败（其他原因，如银行返回失败）
	ThirdPartPaymentTradeStateClosed     uint32 = 6 // 已关闭
	ThirdPartPaymentTradeStateRefund     uint32 = 7 // 转入退款
)

const (
	AfterSaleStatusSuccess      uint32 = 1  // 售后完成
	AfterSaleStatusPending      uint32 = 2  // 等待审核
	AfterSaleStatusAwaitReturn  uint32 = 3  // 等待退货
	AfterSaleStatusAwaitConfirm uint32 = 4  // 等待仓库确认接收退货
	AfterSaleStatusAwaitRefund  uint32 = 5  // 等待退款
	AfterSaleStatusAwaitBarter  uint32 = 6  // 等待换货
	AfterSaleStatusShipped      uint32 = 7  // 已经发货，等待签收
	AfterSaleStatusClosed       uint32 = 8  // 售后关闭（用户取消申请）
	AfterSaleStatusTimeouted    uint32 = 9  // 售后超时
	AfterSaleStatusRejected     uint32 = 10 // 已驳回
)

const (
	AfterSaleProcessApproved  uint32 = 1 // 同意
	AfterSaleProcessRejected  uint32 = 2 // 驳回
	AfterSaleProcessReturned  uint32 = 3 // 已退回
	AfterSaleProcessConfirmed uint32 = 4 // 仓库已接收退货
	AfterSaleProcessRefunded  uint32 = 5 // 已退款
	AfterSaleProcessShipped   uint32 = 6 // 仓库已发换货
	AfterSaleProcessBartered  uint32 = 7 // 用户已签收换货
	AfterSaleProcessCanceled  uint32 = 8 // 用户已取消申请
	AfterSaleProcessTimeouted uint32 = 9 // 售后超时
)

// 订单状态
const (
	OrderTradeStateUserDeleted    uint32 = 3  // 用户删除
	OrderTradeStateAdminDeleted   uint32 = 4  // 后台删除
	OrderTradeStateNotPay         uint32 = 11 // 待付款 //
	OrderTradeStateUserCancelled  uint32 = 12 // 用户取消 //
	OrderTradeStateAutoCancelled  uint32 = 13 // 自动取消 //
	OrderTradeStateAdminCancelled uint32 = 14 // 后台取消 //
	OrderTradeStatePaid           uint32 = 21 // 已付款、待发货 //
	OrderTradeStateShipping       uint32 = 31 // 备货中、正在出库 //
	OrderTradeStateShipped        uint32 = 32 // 已发货、待收货 //
	OrderTradeStateDelivering     uint32 = 41 // 配送中
	OrderTradeStateDelivered      uint32 = 42 // 已配送
	OrderTradeStateConfirmed      uint32 = 51 // 确认收货 //
	OrderTradeStateAutoConfirmed  uint32 = 52 // 自动确认收货
	OrderTradeStateReviewed       uint32 = 61 // 已评价
	OrderTradeStateAutoReviewed   uint32 = 62 // 自动评价
	OrderTradeStateFulfilled      uint32 = 71 // 已完成 //
	OrderTradeStateClosed         uint32 = 79 // 已关闭 //
	OrderTradeStateRefundApply    uint32 = 81 // 退款申请
	OrderTradeStateRefunding      uint32 = 82 // 退款中
	OrderTradeStateRefunded       uint32 = 83 // 已退款 //
	OrderTradeStateAdminRefunding uint32 = 84 // 后台主动退款中
	OrderTradeStateAdminRefunded  uint32 = 85 // 后台已主动退款
	OrderTradeStateReturnApply    uint32 = 91 // 退货申请
	OrderTradeStateReturning      uint32 = 92 // 退货中
	OrderTradeStateReturned       uint32 = 93 // 已退货
)

// erp订单状态
//const (
//	ErpOrderStateExamine  uint32 = 0  // 审核状态
//	ErpOrderStateShipped  uint32 = 8  // 已发货
//	ErpOrderStateShipping uint32 = 13 // 配货中
//)

// 订单类型
const (
	OrderTypeVirtual      uint32 = 1  // 虚拟 // ##25.05.17##
	OrderTypeSeckill      uint32 = 11 // 秒杀
	OrderTypeLottery      uint32 = 12 // 抽奖
	OrderTypeCommon       uint32 = 21 // 普通实物 // ##25.05.17##
	OrderTypeSample       uint32 = 22 // 试香
	OrderTypeUnused       uint32 = 23 // 闲置
	OrderTypeGroupon      uint32 = 31 // 团购
	OrderTypeCrowdFunding uint32 = 32 // 众筹
)

const (
	// 售后类型
	AfterSaleTypeRefund uint32 = 1 // 退款
	AfterSaleTypeReturn uint32 = 2 // 退货退款
	AfterSaleTypeBarter uint32 = 3 // 换货

	//退款类型
	SourceRefund uint32 = 1 // 原路退款
	OtherRefund  uint32 = 2 // 其他退款
	//退货类型
	ExpressDeliveryReturn uint32 = 1 // 快递寄回
	OtherReturn           uint32 = 2 // 其他退货

	//发货订单类型
	NormalOrderShipment    uint32 = 1 // 正常订单发货
	AfterSaleOrderShipment uint32 = 2 // 售后订单发货
)

const OrderTradeTypeCommon uint32 = 1 // 一口价
// 订单类型 1:一口价；5：货到付款；7：预约

const AutoConfirmationDays uint32 = 7

const CloseOrderTimeoutMinutes uint32 = 30

// todo: 删除以下
const (
	UserAssetTypeCash  uint32 = 1
	UserAssetTypeGem   uint32 = 2 // 宝石、 balance余额
	UserAssetTypePoint uint32 = 3 // 积分
)

const (
	UserAssetChangeTypeIncrease uint32 = 1 // 增加
	UserAssetChangeTypeDecrease uint32 = 2 // 减少
)

const (
	UserAssetSourceTypeConsume    uint32 = 0 // 消费
	UserAssetSourceTypeCharge     uint32 = 1 // 充值
	UserAssetSourceTypeRefund     uint32 = 2 // 退款
	UserAssetSourceTypeReturn     uint32 = 3 // 售后
	UserAssetSourceTypeSold       uint32 = 4 // 卖闲置
	UserAssetSourceTypeWithdrawal uint32 = 5 // 提现
	UserAssetSourceTypeTask       uint32 = 6 // 任务
	UserAssetSourceTypeReward     uint32 = 7 // 奖励
	UserAssetSourceTypeCoupon     uint32 = 8 // 兑换优惠券
	UserAssetSourceTypeProduct    uint32 = 9 // 兑换商品
)

const (
	ChatMessageTypeSys                    uint32 = 1 // 系统消息
	ChatMessageTypePrivate                uint32 = 2 // 私聊消息
	ChatMessageTypeGroup                  uint32 = 3 // 群组消息
	ChatMessageTypeSysShoppingCartUpdated uint32 = 4 // 系统消息-购物车已更新
	ChatMessageTypeSysDSAnswerStored      uint32 = 5 // 系统消息-AI问答型帖子已完成
)

const (
	DeepseekContentTypeDefault         = 1 //普通询问
	DeepseekContentTypeDialogue uint32 = 2 // 对话问答
)

const (
	UserFollowStatusDisabled uint32 = 0 // 取消关注
	UserFollowStatusEnabled  uint32 = 1 // 已关注
	UserFollowStatusBlack    uint32 = 2 // 已拉黑
	UserFollowStatusDeleted  uint32 = 3 // 已删除
)
const (
	UserFollowTypeFriendsCircle int32  = 1 // 香圈
	UserFollowTypeExactSearch   uint32 = 2 // 账号、手机号、邮箱搜索
	UserFollowTypeScanCode      uint32 = 3 // 扫码
	UserFollowTypeOther         uint32 = 4 // 其他
)
